package com.topisv.tms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "task_number")
public class TaskNumber extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String customerCode;//客户编码
	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	private String backupTaskNumber ;//varchar(100) NOT NULL COMMENT '任务订单个数区分',
	private String  jobuuid;// varchar(64) NOT NULL COMMENT '操作人id号',
	private String  batchTaskNumber ;//varchar(2046) DEFAULT NULL COMMENT '批次订单个数区分 ',
	private String type;// varchar(30) NOT NULL COMMENT '类型',
	private Date  createDate;// date DEFAULT NULL COMMENT '生成时间',  
	private Date  updateDate;// date DEFAULT NULL COMMENT '处理时间',
	
	
	private String[] batchTaskNumberLists;
	@Transient
	public String[] getBatchTaskNumberLists() {
		return batchTaskNumber.split(",");
	}
	
	@Column(name="backup_task_number")
	public String getBackupTaskNumber() {
		return backupTaskNumber;
	}
	public void setBackupTaskNumber(String backupTaskNumber) {
		this.backupTaskNumber = backupTaskNumber;
	}
	public String getJobuuid() {
		return jobuuid;
	}
	public void setJobuuid(String jobuuid) {
		this.jobuuid = jobuuid;
	}
	@Column(name="batch_task_number")
	public String getBatchTaskNumber() {
		return batchTaskNumber;
	}
	public void setBatchTaskNumber(String batchTaskNumber) {
		this.batchTaskNumber = batchTaskNumber;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Column(name="update_date")
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
